package com.youth.vod;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;


@EnableDiscoveryClient   /*nacos的服务注册*/
/*因为不会使用到数据库，所以这里需要exclude */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)   //因为没有配上数据库，
@ComponentScan(basePackages={"com.youth"})  //因为要用到swagger，所以加上这个包扫描
public class VodApplication {

    public static void main(String[] args) {
        SpringApplication.run(VodApplication.class, args);
    }
}